package com.ruoyi.resource.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resource.mapper.SysBusinessResourceImageTypeMapper;
import com.ruoyi.resource.domain.SysBusinessResourceImageType;
import com.ruoyi.resource.service.ISysBusinessResourceImageTypeService;

/**
 * 图集列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-22
 */
@Service
public class SysBusinessResourceImageTypeServiceImpl implements ISysBusinessResourceImageTypeService 
{
    @Autowired
    private SysBusinessResourceImageTypeMapper sysBusinessResourceImageTypeMapper;

    /**
     * 查询图集列表
     * 
     * @param imageTypeId 图集列表主键
     * @return 图集列表
     */
    @Override
    public SysBusinessResourceImageType selectSysBusinessResourceImageTypeByImageTypeId(Long imageTypeId)
    {
        return sysBusinessResourceImageTypeMapper.selectSysBusinessResourceImageTypeByImageTypeId(imageTypeId);
    }

    /**
     * 查询图集列表列表
     * 
     * @param sysBusinessResourceImageType 图集列表
     * @return 图集列表
     */
    @Override
    public List<SysBusinessResourceImageType> selectSysBusinessResourceImageTypeList(SysBusinessResourceImageType sysBusinessResourceImageType)
    {
        return sysBusinessResourceImageTypeMapper.selectSysBusinessResourceImageTypeList(sysBusinessResourceImageType);
    }

    /**
     * 新增图集列表
     * 
     * @param sysBusinessResourceImageType 图集列表
     * @return 结果
     */
    @Override
    public int insertSysBusinessResourceImageType(SysBusinessResourceImageType sysBusinessResourceImageType)
    {
        sysBusinessResourceImageType.setCreateTime(DateUtils.getNowDate());
        return sysBusinessResourceImageTypeMapper.insertSysBusinessResourceImageType(sysBusinessResourceImageType);
    }

    /**
     * 修改图集列表
     * 
     * @param sysBusinessResourceImageType 图集列表
     * @return 结果
     */
    @Override
    public int updateSysBusinessResourceImageType(SysBusinessResourceImageType sysBusinessResourceImageType)
    {
        sysBusinessResourceImageType.setUpdateTime(DateUtils.getNowDate());
        return sysBusinessResourceImageTypeMapper.updateSysBusinessResourceImageType(sysBusinessResourceImageType);
    }

    /**
     * 批量删除图集列表
     * 
     * @param imageTypeIds 需要删除的图集列表主键
     * @return 结果
     */
    @Override
    public int deleteSysBusinessResourceImageTypeByImageTypeIds(Long[] imageTypeIds)
    {
        return sysBusinessResourceImageTypeMapper.deleteSysBusinessResourceImageTypeByImageTypeIds(imageTypeIds);
    }

    /**
     * 删除图集列表信息
     * 
     * @param imageTypeId 图集列表主键
     * @return 结果
     */
    @Override
    public int deleteSysBusinessResourceImageTypeByImageTypeId(Long imageTypeId)
    {
        return sysBusinessResourceImageTypeMapper.deleteSysBusinessResourceImageTypeByImageTypeId(imageTypeId);
    }
}
